#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdio>
#include<algorithm>

using namespace std;

int main()
{
    int n, m, sum = 0;
    while (cin >> n >> m, n > 0 && m > 0)
    {
        if (n > m)
            swap(n, m);
        for (int i = n; i <= m; i++)
        {
            cout << i << ' ';
            sum += i;
        }
        cout << "Sum=" << sum << endl;
        sum = 0;
    }
    return 0;
}
